package sctu.edu.java.year2016.team03.maoyuhao.lianxi.L1;

import sctu.edu.java.year2016.team00.chengongsuo.day20160602.MyFileOutputStream;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by cc on 2016/6/2.
 */
public class Client {
    public void file(FileOutputStream stream, String str) {

    }

    public static void main(String[] args) {

        File file = new File("D:\\demo.txt");
        File dir = new File("E:\\demo");
        try {
////            dir.mkdir();
            file.createNewFile(); //创建一个文件
            dir.mkdir(); //创建一个文件夹

    //        MyFileOutputStream fileOutputStream = new MyFileOutputStream(file);
//            file(fileOutputStream, "hello");
    //        fileOutputStream.write("hello,world");   //写入

    //        fileOutputStream.close();  //关闭文件
//
//
        } catch (IOException e) {
            e.printStackTrace();



        }
    }
}
